<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">

    <!--遍历获取value-->
    <ul>
        <li v-for="value in name">{{value}}</li>
    </ul>

    <!--遍历过程中 获取key-->

    <ul>
        <li v-for="(value,key,index) in name">{{key}}  {{value}}  {{index+1}}</li>
    </ul>
</div>
<!-- vue js库-->
<script src="../vue.js"></script>



<!--如果是对象的话  遍历的情况?-->
<script>

    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!',
            name:{
                one:'张三',
                two: '李四'
            }
        }
    })
</script>
</body>
</html>